package com.stagewebserver.webserver.controller;


import com.stagecommon.common.pojo.RespBean;
import com.stagewebserver.webserver.service.IndexImgService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yxl
 * @since 2021-11-16
 */
@RestController
@RequestMapping("/index")
public class IndexImgController {

    @Resource
    private IndexImgService indexImgService;

    @GetMapping("/indexImg")
    public RespBean indexImg(){
        return RespBean.operationSuccess("ok", 200, indexImgService.listIndexImgs());
    }

}
